package day03;

/**
 * 演示赋值运算符
 */
public class OperDemo4 {
    public static void main(String[] args) {
        int a=5;
        a+=10;//a=(int)(a+10)
        System.out.println(a);
        a*=2;//a=(int)(a*2)
        System.out.println(a);
        a/=6;//a=(int)(a/6)
        System.out.println(a);

        short s = 5;
        //s = s+10;//编译错误，需强制类型转换
        s+=10;//s = (short)(s+10);
        System.out.println(s);
    }
}
